package com.jt.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data//Getter Setter Tostring...
@Accessors(chain = true)//开启链式加载
@NoArgsConstructor//无参构造
@AllArgsConstructor//全参构造
public class Emp implements Serializable {
    private Integer id;
    private String name;
    private Integer age;
   private Dept dept;


//    public void addUser(){
//        User user2 = new User();
//        user2.setId(1000)
//        .setName("tomcat")
//        .setAge(18)
//        .setSex("男");
//    }
}
